<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class CaseInfoResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id'=>(integer)$this->id,
            'case_time'=>$this->case_time,
            'users_id'=>(integer)$this->users_id,
            'parties'=>(string)$this->parties,
            'case_source'=>(string)$this->case_source,
            'parties_tel'=>(string)$this->parties_tel,
            'code'=>$this->code,
            'case_type'=>$this->case_type
        ];
    }
}
